package com.example.ywj.toutiao.utils;
import java.util.Map;
import okhttp3.MultipartBody;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;
import retrofit2.http.PartMap;

public interface ResponseApi {
    @GET("getTitle")
    Call<ResponseBody> getData();
    @GET("getTitles")
    Call<ResponseBody> getDatas();
    @GET("getTitless")
    Call<ResponseBody> getDatass();
    @FormUrlEncoded()
    @POST("getNews")
    Call<ResponseBody> getNews(@Field("title") String title,@Field("page")Integer page);
    @FormUrlEncoded()
    @POST("getNewById")
    Call<ResponseBody> getNewsById(@Field("id") String id);
    @FormUrlEncoded()
    @POST("getKeyByType")
    Call<ResponseBody> getKeyByType(@Field("type") Integer type);
    @FormUrlEncoded()
    @POST("saveKey")
    Call<ResponseBody> saveKey(@Field("key") String key, @Field("type")Integer type);
    @FormUrlEncoded()
    @POST("login")
    Call<ResponseBody> login(@Field("username") String username, @Field("password")String password);
    @FormUrlEncoded()
    @POST("getUsername")
    Call<ResponseBody> getUsername(@Field("username") String username);
    @FormUrlEncoded()
    @POST("register")
    Call<ResponseBody> register(@Field("username") String username,@Field("password")String password);
    @FormUrlEncoded()
    @POST("search")
    Call<ResponseBody> search(@Field("title") String title,@Field("content")String content);
    @GET("deleteHistory")
    Call<ResponseBody> deleteHistory();
    @FormUrlEncoded()
    @POST("updateNews")
    Call<ResponseBody> updateNews(@Field("id") String id);
    @FormUrlEncoded()
    @POST("saveTitle")
    Call<ResponseBody> saveTitle(@Field("id") String id);
    @FormUrlEncoded()
    @POST("getInfoByUsername")
    Call<ResponseBody> getInfoByUsername(@Field("username") String username);
    @FormUrlEncoded()
    @POST("getInfoByUsername1")
    Call<ResponseBody> getInfoByUsername1(@Field("username") String username);
    @FormUrlEncoded()
    @POST("getVideo")
    Call<ResponseBody> getVideo(@Field("type") String type,@Field("page") Integer page);
    @FormUrlEncoded()
    @POST("getSVideo")
    Call<ResponseBody> getSVideo(@Field("type") String type,@Field("page") Integer page);
    @Multipart
    @POST("upload")
    Call<ResponseBody> uploadFiles(@PartMap() Map<String, RequestBody> maps, @Part("content")RequestBody content,@Part("username")RequestBody username);
    @FormUrlEncoded()
    @POST("getNewsByUsername")
    Call<ResponseBody> getNewsByUsername(@Field("username") String username);
    @FormUrlEncoded()
    @POST("saveNickName")
    Call<ResponseBody> saveNickName(@Field("nickname") String nickname,@Field("username") String username);
    @FormUrlEncoded()
    @POST("saveDesc")
    Call<ResponseBody> saveDesc(@Field("desc") String desc,@Field("username") String username);
    @FormUrlEncoded()
    @POST("saveSex")
    Call<ResponseBody> saveSex(@Field("sex") String sex,@Field("username") String username);
    @FormUrlEncoded()
    @POST("saveBirthday")
    Call<ResponseBody> saveBirthday(@Field("birthday") String birthday,@Field("username") String username);
    @FormUrlEncoded()
    @POST("savePlace")
    Call<ResponseBody> savePlace(@Field("place") String place,@Field("username") String username);
    @Multipart
    @POST("updateAvatar")
    Call<ResponseBody> updateAvatar(@Part MultipartBody.Part file,@Part("username")RequestBody username);
    @FormUrlEncoded()
    @POST("isAttention")
    Call<ResponseBody> isAttention(@Field("attentionUser") String attentionUser,@Field("username") String username);
    @FormUrlEncoded()
    @POST("attention")
    Call<ResponseBody> attention(@Field("attentionUser") String attentionUser,@Field("username") String username);
    @FormUrlEncoded()
    @POST("cancelAttention")
    Call<ResponseBody> cancelAttention(@Field("attentionUser") String attentionUser,@Field("username") String username);
    @FormUrlEncoded()
    @POST("isLike")
    Call<ResponseBody> isLike(@Field("newId") String newId,@Field("username") String username);
    @FormUrlEncoded()
    @POST("like")
    Call<ResponseBody> like(@Field("newId") String newId,@Field("username") String username);
    @FormUrlEncoded()
    @POST("cancelLike")
    Call<ResponseBody> cancelLike(@Field("newId") String newId,@Field("username") String username);
    @FormUrlEncoded()
    @POST("isSave")
    Call<ResponseBody> isSave(@Field("newId") String newId,@Field("username") String username);
    @FormUrlEncoded()
    @POST("save")
    Call<ResponseBody> save(@Field("newId") String newId,@Field("username") String username);
    @FormUrlEncoded()
    @POST("cancelSave")
    Call<ResponseBody> cancelSave(@Field("newId") String newId,@Field("username") String username);
    @FormUrlEncoded()
    @POST("myNewCount")
    Call<ResponseBody> myNewCount(@Field("username") String username);
    @FormUrlEncoded()
    @POST("myAttentionCount")
    Call<ResponseBody> myAttentionCount(@Field("username") String username);
    @FormUrlEncoded()
    @POST("myFensiCount")
    Call<ResponseBody> myFensiCount(@Field("username") String username);
    @FormUrlEncoded()
    @POST("myhuozanCount")
    Call<ResponseBody> myhuozanCount(@Field("username") String username);
    @FormUrlEncoded()
    @POST("findAttention")
    Call<ResponseBody> findAttention(@Field("username") String username);
    @FormUrlEncoded()
    @POST("findAttention1")
    Call<ResponseBody> findAttention1(@Field("username") String username);
    @FormUrlEncoded()
    @POST("findSaveList")
    Call<ResponseBody> findSaveList(@Field("username") String username);
    @FormUrlEncoded()
    @POST("findLikeList")
    Call<ResponseBody> findLikeList(@Field("username") String username);
    @FormUrlEncoded()
    @POST("getAvatar")
    Call<ResponseBody> getAvatar(@Field("username") String username);
    @FormUrlEncoded()
    @POST("getAttentionNum")
    Call<ResponseBody> getAttentionNum(@Field("username") String username);
    @FormUrlEncoded()
    @POST("submitComment")
    Call<ResponseBody> submitComment(@Field("username") String username,@Field("newId") String newId,@Field("content") String content,@Field("author") String author,@Field("avatar") String avatar,@Field("nickname") String nickname);
    @FormUrlEncoded()
    @POST("getComment")
    Call<ResponseBody> getComment(@Field("newId") String newId);
    @FormUrlEncoded()
    @POST("findCommentList")
    Call<ResponseBody> findCommentList(@Field("username") String username);
    @GET("getTotalPage")
    Call<ResponseBody> getTotalPage();
}
